#ifndef __FMC_H
#define __FMC_H

#include "gd32f10x.h"

#define GD_FLASH_BASE_ADDR			0x08000000					/* flash起始地址 */
#define GD_FLASH_PAGE_NUM			64							/* flash容量（64K，即64页） */
#define GD_FLASH_PAGE_SIZE			1024						/* flash页大小 */

void gd32_flash_erase(uint16_t start_page, uint16_t page_num);
void gd32_flash_write(uint32_t start_addr, uint32_t *data, uint32_t byte_num);

#endif
